package com.muhuahealth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muhuahealth.entity.RoadEntity;
import com.muhuahealth.utils.PageQueryUtil;
import com.muhuahealth.utils.ServerResponse;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoadDao extends BaseMapper<RoadEntity> {

    List<RoadEntity> findRoadListPage(PageQueryUtil pageQueryUtil);

    int getTotalListPage(PageQueryUtil pageQueryUtil);

    int saveRoadInfo(RoadEntity roadEntity);

    RoadEntity selectByPrimaryKey(Integer id);

    int updateRoadInfoById(RoadEntity roadEntity);

    int deleteById(Integer id);

    ServerResponse searchRoadInfo(RoadEntity roadEntity);
}
